/*
 * @Author: 无聊 7989314+Hwz1997@user.noreply.gitee.com
 * @Date: 2025-10-27 09:09:41
 * @LastEditors: 无聊 7989314+Hwz1997@user.noreply.gitee.com
 * @LastEditTime: 2025-10-27 09:31:21
 * @FilePath: \keep_motion_api\aliases.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
const path = require('path');
const moduleAlias = require('module-alias');

// 添加路径别名
moduleAlias.addAlias('@', path.join(__dirname));
moduleAlias.addAlias('@/controllers', path.join(__dirname, 'controllers'));
moduleAlias.addAlias('@/middleWares', path.join(__dirname, 'middleWares'));
moduleAlias.addAlias('@/models', path.join(__dirname, 'models'));
moduleAlias.addAlias('@/routes', path.join(__dirname, 'routes'));
moduleAlias.addAlias('@/utils', path.join(__dirname, 'utils'));
moduleAlias.addAlias('@/views', path.join(__dirname, 'views'));